package com.iwomy.secureplat.platform.transmission.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Document(collection = "sensorTransmissionData")
public class SensorTransmissionData {

	private String id;

	@Indexed
	private String deviceUniqueId;

	@Indexed
	private String alarmInfo;

	private String alarmEvenCode;

	@Indexed
	@Schema(description="时间名称")
	private String alarmEvenName;
	/**
	 * 报警类型code
	 */
	private String alarmTypeCode;
	/**
	 * 报警类型名称
	 */
	private String alarmTypeName;

	@Schema(description="时间时间")
	@Indexed
	private LocalDateTime receptionTime;

	private Long tenantId;

	private Long deptId;

	private List<SensorTransmissionDataDetails> sensorTransmissionDataDetailsList;

	private String deviceType;

	private String deviceModelName;

	private String imei;
	@Schema(description="设备上报内容")
	private String content;

//	private String signal;

//	private String batteryLevel;

//	private Object _id;


}
